package com.youlai.system.mapper;

import com.youlai.system.model.entity.Approval;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 只茂瑞
 * @since 2024-06-25
 */
@Mapper
public interface ApprovalMapper extends BaseMapper<Approval> {

    @Update("UPDATE approval SET `status` = #{status} WHERE id = #{id} ")
    void updateStatus(Approval approval);
}
